#include <iostream>
#include <thread>
using namespace std;

class Example{
public:
    void operator()(int x, int y){
        cout << "x = " << x << endl;
        cout << "y = " << y << endl;
        cout << "thread id = " << this_thread::get_id() << endl;
    }
};


int main() {
    Example example;
    thread th(example, 777, 888);
    th.join();

    return 0;
}
